Product Code Database
Example Keywords: sweatshirt -slacks $37-153
barcode-scavenger
   » » Wiki: Code Segment
Tag Wiki 'Code Segment'.
Tag

Code segment
 (

Rank: 100%
Bluestar Bluestar Bluestar Bluestar Blackstar

In , a code segment, also known as a text segment or simply as text, is a portion of an or the corresponding section of the program's virtual address space that contains instructions.


Segment
The term "segment" comes from the , which is a historical approach to memory management that has been succeeded by . When a program is stored in an object file, the code segment is a part of this file; when the loader places a program into so that it may be executed, various memory regions are allocated (in particular, as pages), corresponding to both the segments in the object files and to segments only needed at run time. For example, the code segment of an object file is loaded into a corresponding code segment in memory.

The code segment in memory is typically read-only and has a fixed size, so on it can usually be placed in (ROM), without the need for loading. If the code segment is not read-only, then the particular architecture allows self-modifying code. Fixed-position or position-independent code may be shared in memory by several processes in segmented or paged memory systems. As a memory region, the code segment may be placed below the heap or stack in order to prevent and from overwriting it.


See also

Page 1 of 1
1
Page 1 of 1
1

Account

Social:
Pages:  ..   .. 
Items:  .. 

Navigation

General: Atom Feed Atom Feed  .. 
Help:  ..   .. 
Category:  ..   .. 
Media:  ..   .. 
Posts:  ..   ..   .. 

Statistics

Page:  .. 
Summary:  .. 
1 Tags
10/10 Page Rank
5 Page Refs
1s Time